package com.as.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Rank entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "rank", catalog = "calculate")
public class Rank implements java.io.Serializable {

	// Fields

	private String rankid;
	private String userid;
	private Integer rank;
	private Integer righttimes;

	// Constructors

	/** default constructor */
	public Rank() {
	}

	/** minimal constructor */
	public Rank(String rankid) {
		this.rankid = rankid;
	}

	/** full constructor */
	public Rank(String rankid, String userid, Integer rank, Integer righttimes) {
		this.rankid = rankid;
		this.userid = userid;
		this.rank = rank;
		this.righttimes = righttimes;
	}

	// Property accessors
	@Id
	@Column(name = "rankid", unique = true, nullable = false, length = 30)
	public String getRankid() {
		return this.rankid;
	}

	public void setRankid(String rankid) {
		this.rankid = rankid;
	}

	@Column(name = "userid", length = 30)
	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	@Column(name = "rank")
	public Integer getRank() {
		return this.rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	@Column(name = "righttimes")
	public Integer getRighttimes() {
		return this.righttimes;
	}

	public void setRighttimes(Integer righttimes) {
		this.righttimes = righttimes;
	}

}